package com.zhiy.com.estation.ui.fragment.upload;

import com.zhiy.com.estation.api.ApiResult;
import com.zhiy.com.estation.ui.base.BaseModel;
import com.zhiy.com.estation.ui.base.BasePresenter;
import com.zhiy.com.estation.ui.base.BaseView;

import java.io.File;

import io.reactivex.Flowable;
import okhttp3.RequestBody;

/**
 * Created by Zyh on 2016/12/6.
 */
public interface UploadAvarContract  {
    interface Model extends BaseModel{
       public abstract Flowable<ApiResult<String>> upload(String userid,RequestBody requestBody);
    }
    interface View extends BaseView{
        public abstract void isSuccess(String avar);
        void isFailure();
        void  showMsg(String msg);
    }
    public abstract class prensenter extends BasePresenter<Model,View>{
        abstract void upload(String userid,RequestBody requestBody );
    }
}
